package com.jsonal.config;


import com.jsonal.BlogApplication;
import org.mybatis.spring.annotation.MapperScan;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.builder.SpringApplicationBuilder;
import org.springframework.boot.web.servlet.support.SpringBootServletInitializer;
import org.springframework.transaction.annotation.EnableTransactionManagement;

/**
 * @Author: jingji.lin
 * @Description:
 * @Date: 2020/1/2 15:42
 * @Version: 1.0
 */
@EnableTransactionManagement
@SpringBootApplication
@MapperScan("com.jsonal.mapper")
public class ServletInitializer extends SpringBootServletInitializer {

    @Override
    protected SpringApplicationBuilder configure(SpringApplicationBuilder builder) {
        return builder.sources(BlogApplication.class);
    }
}
